﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Elsa.CSharp.Activities;
using Elsa.Expressions.Models;
using Elsa.JavaScript.Activities;
using Elsa.Workflows;
using Elsa.Workflows.Activities;
using Elsa.Workflows.Memory;
using Elsa.Workflows.Models;
using T.FAS.Runtime.MF.Entity;
using T.FAS.Runtime.MF.SPI;
using ElsaExpression = Elsa.Expressions.Models.Expression;
namespace T.FAS.Runtime.MF.Activities.Nodes
{
    public class WriteLineNode : NodeBase, INodeMapper
    {
        public List<Variable> Variables { get ; set ; }
        public List<OutputDefinition> Outputs { get ; set  ; }
        public List<InputDefinition> Inputs { get; set; } = new List<InputDefinition>();

        public IActivity MapToActivity()
        {
            IActivity activity = null;
            activity = new WriteLine(new ElsaExpression("Variable", 
                new Variable<string>($"{"24cdc653-ffb3-402a-873a-37339865894e"}:{"result"}", "")));
            return activity;
        }
    }
}
